package com.iceberg.adgt.domain;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * @author David
 */
public final class LayerDTO {

	private String name;
	private Set<UnitDTO> units = new HashSet<UnitDTO>();
	private Set<RuleDTO> rules = new HashSet<RuleDTO>();
	private Map<String, LayerDTO> allowedLayers = new HashMap<String, LayerDTO>();
	private int number;

	public void setName(String name) {
		this.name = name;
	}

	public void setUnits(Set<UnitDTO> units) {
		this.units = units;
	}

	public void setRules(Set<RuleDTO> rules) {
		this.rules = rules;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public void setLayers(Map<String, LayerDTO> layers) {
		this.allowedLayers = layers;
	}

	public String getName() {
		return name;
	}

	public Set<UnitDTO> getUnits() {
		return units;
	}

	public Set<RuleDTO> getRules() {
		return rules;
	}

	public Map<String, LayerDTO> getAllowedLayers() {
		return allowedLayers;
	}

	public int getNumber() {
		return number;
	}
}
